﻿<%@ Page Language="VB" MasterPageFile="~/Interfaz/MasterPage.master" AutoEventWireup="false" CodeFile="frmAdminPresupuesto.aspx.vb" Inherits="Interfaz_ModuloAdministracion_frmAdminPresupuesto" title="Presupuesto" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <center style="text-align: center">
           
       <table style="border-right: lightblue thin solid; border-top: lightblue thin solid; border-left: lightblue thin solid; width: 933px; border-bottom: lightblue thin solid; background-color: white">
        <tr>
            <td style="height: 100%">
                &nbsp;<asp:Panel ID="Panel2" runat="server" BorderColor="Blue" BorderStyle="Solid" BorderWidth="1px">   <table style="width: 933px; border-bottom: mediumblue thin double; background-color: white">
        <tr>
            <td style="width: 513px; text-align: left; height: 19px;">
                <strong>PLANIFICACION &nbsp;PRESUPUESTO
                    <asp:Label ID="lblIdPresupuesto" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label></strong></td>
            <td style="width: 356px; height: 19px; text-align: right">
                <strong><span style="color: #6699ff; background-color: black">Buscar Presupuesto Anterior</span>&nbsp;</strong><asp:DropDownList ID="DropSeleccionarPresupuesto" runat="server" Width="131px" style="text-align: center"> </asp:DropDownList>
                
                <asp:Button ID="BuscarPresupuestoAntiguo" runat="server" Text="ir" OnClientClick="return confirm('Esta Seguro que desea cargar los datos del Presupuesto Seleccionado');"  /></td>
        </tr>
    </table>
                <table style="width: 933px;">
                    <tr>
                        <td style="width: 165px; height: 18px; text-align: left">
                            <strong>Cliente :</strong></td>
                        <td style="width: 154px; height: 18px; text-align: left">
                            <asp:DropDownList ID="DropCliente" runat="server" Width="200px">
                            </asp:DropDownList></td>
                        <td style="width: 59px; height: 18px; text-align: left">
                            <strong>Fecha :</strong></td>
                        <td style="height: 18px; text-align: left; width: 50px;">
                         
                            <asp:TextBox ID="TxtFecha" runat="server" Width="177px"></asp:TextBox>&nbsp;
                            <cc1:calendarextender id="CalendarExtender1" runat="server" TargetControlID="TxtFecha" CssClass="calendarContainer" Format="dd/MM/yyyy"></cc1:calendarextender>
                            &nbsp;
                            <asp:ScriptManager id="ScriptManager1" runat="server">
                            </asp:ScriptManager>
                              
                          
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 165px; height: 22px; text-align: left">
                            <strong>Condiciones de Venta :</strong></td>
                        <td style="width: 154px; height: 22px; text-align: left">
                            <asp:TextBox ID="TxtCondVenta" runat="server" Width="192px"></asp:TextBox>&nbsp;
                            
        
                            </td>
                        <td style="width: 59px; height: 22px; text-align: left">
                            <strong>Vendedor :</strong></td>
                        <td style="height: 22px; width: 50px;">
                            <asp:DropDownList ID="DropVendedor" runat="server" Width="198px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 165px; height: 22px; text-align: left">
                            <strong>Atencion :</strong></td>
                        <td style="width: 154px; height: 22px; text-align: left">
                            <asp:TextBox ID="TxTatencion" runat="server" Width="192px"></asp:TextBox></td>
                        <td style="width: 59px; height: 22px; text-align: left">
                            <strong>Garantias :</strong></td>
                        <td style="height: 22px; width: 50px;">
                            <asp:TextBox ID="TxTGarantia" runat="server" Width="192px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 165px; height: 27px; text-align: left">
                            <strong>Entrega :</strong></td>
                        <td style="width: 154px; height: 27px; text-align: left">
                            <asp:TextBox ID="TxTEntrega" runat="server" Width="192px"></asp:TextBox></td>
                        <td style="width: 59px; height: 27px; text-align: left">
                            <strong>Plano :</strong></td>
                        <td style="height: 27px; width: 50px;">
                            <asp:TextBox ID="TxTPlano" runat="server" Width="192px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 165px; height: 22px; text-align: left">
                            <strong>Requisicion:</strong></td>
                        <td style="width: 154px; height: 22px; text-align: left">
                            <asp:TextBox ID="TxTRequisicion" runat="server" Height="16px" Width="192px"></asp:TextBox></td>
                        <td style="width: 59px; height: 22px; text-align: right">
                        </td>
                        <td style="height: 22px; width: 50px;">
                        </td>
                    </tr>
                </table>
        &nbsp;
                <table style="width: 933px; border-bottom: mediumblue thin double; background-color: white">
                    <tr>
                        <td style="width: 356px; text-align: left; height: 33px;">
                            <strong>DATOS PRESUPUESTO - INFORME</strong></td>
                    </tr>
                </table>
                <table style="width: 933px">
                    <tr>
                        <td style="width: 135px; height: 18px; text-align: left">
                            <strong>Estimado Sr. :</strong></td>
                        <td style="width: 133px; height: 18px; text-align: left">
                            <asp:TextBox ID="TxTEstimadoSr" runat="server" TextMode="MultiLine" Height="100px" Width="250px"></asp:TextBox></td>
                        <td style="width: 146px; height: 18px; text-align: left">
                            <strong>Precios :</strong></td>
                        <td style="height: 18px; text-align: left; width: 146px;">
                            <strong>
                                <asp:TextBox ID="TxTPrecio"  runat="server" TextMode="MultiLine" Height="100px" Width="250px"  ></asp:TextBox>
                            </strong>
                        </td>
                    </tr>
                    <tr style="font-weight: bold">
                        <td style="width: 135px; height: 22px; text-align: left">
                            Condiciones :</td>
                        <td style="width: 133px; height: 22px; text-align: left">
                            <asp:TextBox ID="TxTCondiciones" runat="server" TextMode="MultiLine" Height="100px" Width="250px"></asp:TextBox>
                            </td>
                        <td style="width: 146px; height: 22px; text-align: left">
                            <strong>Plazos de entrega :</strong></td>
                        <td style="height: 22px; width: 146px;">
                            <asp:TextBox ID="TxTPlazosEntrega" runat="server" TextMode="MultiLine" Height="100px" Width="250px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 135px; height: 22px; text-align: left">
                            <strong>Lugar de entrega :</strong></td>
                        <td style="width: 133px; height: 22px; text-align: left">
                            <asp:TextBox ID="TxTLugarEntrega" runat="server" TextMode="MultiLine" Height="100px" Width="250px"></asp:TextBox></td>
                        <td style="width: 146px; height: 22px; text-align: left">
                            <strong>Validez de la oferta :</strong></td>
                        <td style="height: 22px; width: 146px;">
                            <asp:TextBox ID="TxTValidezOferta" runat="server" TextMode="MultiLine" Height="100px" Width="250px"></asp:TextBox></td>
                    </tr>
                </table>
                            <table style="width: 933px; border-bottom: mediumblue thin double; background-color: white">
                                <tr>
                                    <td style="width: 263px; text-align: left">
                                        <strong>FACTORES</strong></td>
                                </tr>
                            </table>
                            <table style="width: 933px">
                                <tr>
                                    <td style="width: 195px; height: 26px; text-align: left">
                                        <strong>Gastos Generales :</strong></td>
                                    <td style="width: 91px; height: 26px; text-align: left">
                                        <asp:TextBox ID="TxtGastosGralMat" runat="server" Width="200px"></asp:TextBox></td>
                                    <td style="width: 156px; height: 26px; text-align: left">
                                        <strong>Porcentaje Utilidad:</strong>
                                    </td>
                                    <td style="height: 26px">
                                        <asp:TextBox ID="TxTPorMate" runat="server" Width="200px"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 195px; height: 26px; text-align: left">
                                        <strong>Utilidad Materiales :&nbsp;</strong></td>
                                    <td style="width: 91px; height: 26px; text-align: left">
                                        <asp:TextBox ID="TxtUtilMat" runat="server" Width="200px"></asp:TextBox></td>
                                    <td style="width: 156px; height: 26px; text-align: left">
                                        <strong>Descuento :</strong></td>
                                    <td style="height: 26px">
                                        <asp:TextBox ID="TxTDescuentoMat" runat="server" Width="200px"></asp:TextBox></td>
                                </tr>
                            </table>
                </asp:Panel>
                <asp:Label ID="LblAvisoLlenarCampos" runat="server" Font-Bold="True" ForeColor="Red" Width="935px"></asp:Label></td>
        </tr>
        <tr>
            <td>
                
                <asp:Button ID="agregarItem" runat="server" Text="Agregar Item" Width="104px" Font-Bold="True" /></td>
        </tr>
        <tr>
            <td>
 <asp:Panel ID="Panel1" runat="server" BorderColor="Blue" BorderStyle="Solid" BorderWidth="1px" Visible="False">   
 
     <table style="width: 933px; border-bottom: mediumblue thin double; background-color: white">
         <tr>
             <td style="width: 263px; text-align: left">
                 <strong>Datos Presupuesto</strong></td>
         </tr>
     </table>

 <table style="width: 933px;">
                    
                                    <tr>
                                        <td style="width: 166px; text-align: left">
                                            <strong>Tarea a realizar :</strong></td>
                                        <td style="text-align: left">
                                            <asp:TextBox ID="TxTtareaRealizar" runat="server" Height="100px" Width="340px" TextMode="MultiLine"></asp:TextBox></td>
                                        <td style="width: 156px; text-align: left">
                                            <strong>Descripcion del trabajo:</strong></td>
                                        <td>
                                            <asp:TextBox ID="TxtDescripcionTrabajo" runat="server" Height="100px" Width="340px" TextMode="MultiLine"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 166px; text-align: left">
                                            <strong>Observacion al taller:</strong></td>
                                        <td style="text-align: left">
                                            <asp:TextBox ID="TxTObservacionTaller" runat="server" Height="100px" Width="340px" TextMode="MultiLine"></asp:TextBox></td>
                                        <td style="width: 156px; text-align: left">
                                            <strong>Notas al cliente :</strong></td>
                                        <td>
                                            <asp:TextBox ID="TxTNotasClientes" runat="server" Height="100px" Width="340px" TextMode="MultiLine"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 166px; height: 21px; text-align: left">
                                            <strong>Notas Ventas:</strong></td>
                                        <td style="height: 21px">
                                            <asp:TextBox ID="TxTNotasVentas" runat="server" Height="100px" Width="340px" TextMode="MultiLine"></asp:TextBox></td>
                                        <td style="width: 156px; height: 21px; text-align: right">
                                            <strong></strong>
                                        </td>
                                        <td style="height: 21px">
                                            <asp:Button ID="BtnIngresarItem" runat="server" Text="Ingresar" Width="345px" Font-Bold="True" Height="65px" /></td>
                                    </tr>
                                </table>
                        <asp:Label ID="LabelAvisoIngresoItem" runat="server" Width="922px"></asp:Label>
         <asp:GridView ID="GridItems" runat="server" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4"
             ForeColor="#333333" GridLines="None"  Width="933px">
             <RowStyle BackColor="#EFF3FB" />
             <Columns>
                 <asp:BoundField DataField="ID" HeaderText="Id" />
                 <asp:BoundField DataField="TAREA" HeaderText="Tarea" ReadOnly="True">
                     <ItemStyle HorizontalAlign="Center" />
                 </asp:BoundField>
                 <asp:BoundField DataField="OBSERVACION" HeaderText="Observacion">
                     <ItemStyle HorizontalAlign="Center" />
                 </asp:BoundField>
                 <asp:BoundField DataField="NOTASV" HeaderText="Notas V.">
                     <ItemStyle HorizontalAlign="Center" />
                 </asp:BoundField>
                 <asp:BoundField DataField="DESCRIPCION" HeaderText="Descripcion">
                     <ItemStyle HorizontalAlign="Center" />
                 </asp:BoundField>
                 <asp:BoundField DataField="NOTASC" HeaderText="Notas C." />
                 <asp:TemplateField HeaderText="Agregar Material">
                     <ItemTemplate>
                         <asp:Button ID="GridAgregarMaterial" CommandName="AgregarMaterial" runat="server" Height="29px" 
                             Text="Agregar Material" Width="210px" CommandArgument="<%# CType(Container,GridViewRow).RowIndex %>"   />
                     </ItemTemplate>
                 </asp:TemplateField>
                 <asp:TemplateField HeaderText="Agregar Actividad">
                     <ItemTemplate>
                         <asp:Button ID="GridAgregarAct" CommandName="AgregarActividad" runat="server" Height="28px" Text="Agregar Actividad"
                             Width="217px" CommandArgument="<%# CType(Container,GridViewRow).RowIndex %>"  />
                     </ItemTemplate>
                 </asp:TemplateField>
             </Columns>
             <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
             <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
             <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
             <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
             <EditRowStyle BackColor="#2461BF" />
             <AlternatingRowStyle BackColor="White" />
         </asp:GridView>
	</asp:Panel>
                
            </td>
        </tr>
    </table>
		</center>

</asp:Content>

